import Vue from 'vue'
import App from './App.vue'
import router from './router'

import Vuex from 'vuex'
Vue.use(Vuex);
import createStore from './store/mainStore'
const store = createStore();

import './css/main.scss'
import './assets/iconfont/iconfont.css'

import scrollBar from './components/pc/ScrollBar'
import cutProfile from "./views/pc/CutProfile";
import loading from "./components/Loading"
import alert from "./components/Alert"
Vue.component('scroll-container', scrollBar);
Vue.component('cut-profile', cutProfile);
Vue.component('loading', loading);
Vue.component('alert', alert);

import http from './http';
Vue.prototype.$http = http;

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
